﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PinCity.Models.Base;

namespace PinCity.Models.Content
{
    /// <summary>
    /// Represents persisted map marker entity.
    /// </summary>
    public class Pin : Entry
    {
        /// <summary>
        /// Gets or sets latitude of the marker.
        /// </summary>
        public virtual double Latitude { get; set; }

        /// <summary>
        /// Gets or sets longtitude of the marker.
        /// </summary>
        public virtual double Longtitude { get; set; }

        /// <summary>
        /// Gets or sets human-readable address of the marker.
        /// Has to be entered by user or calculated with geocode.
        /// </summary>
        public virtual string Address { get; set; }

        /// <summary>
        /// Gets or sets URL of the attached photo.
        /// </summary>
        public virtual string PictureUrl { get; set; }
    }
}